from common.common import exter_attack
from exchange.handle.backup.backup_service import ExchangeBackupService
from exchange.logger import log


class BackupAbility:
    """
    备份相关接口
    """
    @staticmethod
    @exter_attack
    def backup(req_id, job_id, sub_id, std_in):
        return ExchangeBackupService.exec_backup(req_id, job_id, sub_id, std_in)


    @staticmethod
    @exter_attack
    def query_backup_copy(req_id, job_id, sub_id, std_in):
        return ExchangeBackupService.query_backup_copy(req_id, job_id, sub_id, std_in)
